package com.framework.admin.schedule.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.framework.admin.schedule.entity.SysJob;
import com.framework.admin.schedule.param.JobParam;
import org.quartz.SchedulerException;

public interface IJobService {
    Page<SysJob> listJobs(JobParam param, Page request);

    void addJob(SysJob param);

    void schedulerJob(Long id) throws SchedulerException;

    void startJob(Long id);

    void deleteJob(Long id);

    boolean run(SysJob job);

    void updateJob(SysJob job);

    SysJob getJob(Long id);
}
